import sqlite3

connection = sqlite3.connect('test.db')
cursor = connection.cursor()

#sql = """CREATE TABLE Settings (id INTEGER PRIMARY KEY AUTOINCREMENT, setting TEXT, value TEXT)"""

#sql = "INSERT INTO Settings (setting, value) VALUES ('slideshow_delay', '15')"  

sql = "SELECT setting, id, value"

cursor.execute(sql)

data = cursor.fetchall()
print data

connection.commit()
connection.close()
